package basics.proxy.staticProxy;

import basics.proxy.SmsService;

/**
 * @author jiangwz
 * @create 2021/3/10.
 */
public class SmsStaticProxy implements SmsService {

    private SmsService smsService;

    public SmsStaticProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String message) {
        System.out.println("proxy->before");

        String send = smsService.send(message);
        System.out.println("send -> "+ send);
        System.out.println("proxy->after");

        return send;
    }
}
